package com.laysonx.demo.handler;

import com.laysonx.data.police.annotation.EnableDataVerify;
import com.laysonx.data.police.handler.AbstractDisposeHandler;
import com.laysonx.demo.entity.Demo;
import org.aopalliance.intercept.MethodInvocation;

/**
 * @description:
 * @author: Laysonx
 * @date: 2019/10/22 16:05
 */
public class MyTagDisposeHandler extends AbstractDisposeHandler {

    @Override
    public Class<?> getTargetClass() {
        return Demo.class;
    }

    @Override
    public void dispose(Boolean verifySuccess, MethodInvocation invocation, EnableDataVerify enableDataVerify) {
        if(verifySuccess){
            System.out.println("验证通过的TAG处理逻辑");
        }else{
            System.out.println("验证失败的TAG处理逻辑");
        }
    }

    @Override
    public String getTag() {
        return "EXCEPTION";
    }
}
